//
//  GradientsBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/10.
//

import SwiftUI

struct GradientsBoot: View {
    var body: some View {
        RoundedRectangle(cornerRadius: 25)
            .fill(
//                LinearGradient(gradient: Gradient(colors: [Color.black, .blue]), startPoint: .leading, endPoint: .trailing)
//                RadialGradient(gradient: Gradient(colors: [.red, .blue]), center: .topLeading, startRadius: 1, endRadius: 200)
                AngularGradient.init(gradient: Gradient(colors: [.red, .blue]), center: .topLeading, angle: .degrees(180 + 45))
            )
            .frame(width: 300, height: 200)
    }
}

#Preview {
    GradientsBoot()
}
